// 人员信息

interface argment{
    [propname:string]:string|number
}

export default class carPersonal{
    nickname:string = ''
    kind:string = '个人'
    idCardNumber:string = ''
    idCardKind:string = ''
    address:string = ''
    contact:string = ''
    phone:string = ''
    order:number = 0

    // 赋值
    public constructor(arg?:argment){

        if(arg){
            Object.keys(arg).forEach(key =>{
            
                if(this.hasOwnProperty(key)){
                    this[key] = arg[key];
                }
                
            })
        }

       
        
    }
    
}